/**
 * create by zhangpu
 * date:2015年3月20日
 */
package com.acooly.module.openapi.client.api.message;

import com.acooly.core.utils.ToString;
import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author zhangpu
 */
public class PostRedirect {
    private String redirectUrl;
    private Map<String, String> formDatas = Maps.newHashMap();

    public PostRedirect() {
        super();
    }

    public PostRedirect(String redirectUrl) {
        super();
        this.redirectUrl = redirectUrl;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public Map<String, String> getFormDatas() {
        return formDatas;
    }

    public void setFormDatas(Map<String, String> formDatas) {
        this.formDatas = formDatas;
    }

    public void addData(String key, String value) {
        formDatas.put(key, value);
    }

    @Override
    public String toString() {
        return ToString.toString(this);
    }
}
